package com.apes.fn.tms.repository;

import com.apes.fn.tms.model.CarDetails;
import com.apes.fn.tms.model.CarInformation;
import com.apes.fn.tms.model.Chauffeur;
import com.apes.fn.tms.model.Waybill;
import com.apes.framework.jpa.repository.CustomRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface CarDetailsRepository extends CustomRepository<CarDetails, String> {

    List<CarDetails> findAllByWaybillId(Waybill waybill);

    CarDetails findAllByWaybillIdAndCarInformationId(Waybill waybill,CarInformation carInformation);
    List<CarDetails> findAllByCarInformationId(CarInformation carInformation);
}
